﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="Chi-Tiet-Nhom-Video.aspx.cs" Inherits="Chi_Tiet_Nhom_Video" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Danh mục Video -
        <%= Common.tieude %></title>
    <meta content='<%= Constants.DESCRIPTION_CHONWEB %>' name='description' />
    <link href='<%= ResolveUrl("CSS/style-divu.css") %>' rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <br />
    <br />
    <div class="benTrai" style="z-index: 9;">
        <div class="borderlienhetrai" style="height: auto">
            <dx:videoleft id="VideoLeft" runat="server" />
        </div>
        <div style="padding-top: 20px;">
            &nbsp</div>
        <div class="bordertrai" style="height: auto;">
            <dx:baivietleft id="BaiVietLeft" runat="server" />
        </div>
        <div style="padding-top: 20px;">
            &nbsp</div>
        <div class="bordertrai" style="height: auto;">
            <dx:mangxahoi id="MangXaHoi" runat="server" />
        </div>
    </div>
    <div class="benPhai">
        <asp:UpdatePanel runat="server" ID="updatePanel1" UpdateMode="Conditional">
            <ContentTemplate>
                <div class="linkchuyenmucdetail">
                    <asp:Image ID="imagearrow" runat="server" ImageUrl="~/Images/dotnetgroup/gohome.png"
                        Width="16px" EnableViewState="false" />
                    <asp:HyperLink ID="linkHome" runat="server" EnableViewState="false" NavigateUrl="~/"
                        CssClass="linkhomedetail">Trang Chủ</asp:HyperLink>
                    »
                    <asp:HyperLink ID="linkTinTuc" runat="server" EnableViewState="false" NavigateUrl="~/Videos.aspx"
                        CssClass="linkhomedetail">Video</asp:HyperLink>
                    »
                    <asp:HyperLink ID="linkloaitin" runat="server" EnableViewState="false" CssClass="linkhomedetail"
                        NavigateUrl="~/Chi-Tiet-Nhom-Video.aspx">
                        <asp:Label ID="lblLoaiVideo" runat="server"></asp:Label></asp:HyperLink>
                </div>
                <asp:DataList ID="dtlVideo" runat="server" RepeatDirection="Vertical" RepeatLayout="Flow">
                    <ItemTemplate>
                        <div class="borderphai">
                            <div class="tieude-tintuc">
                                <h4 style="font-weight: bold;">
                                    <asp:HyperLink runat="server" ID="linkTieude" NavigateUrl='<%# "~/Video/"+ GetTieuDe(Eval("TieuDe")) + "_"  + Eval("Id") + ".aspx" %>'
                                        EnableViewState="false">
                            <%# Eval("TieuDe") %> </asp:HyperLink>
                                </h4>
                            </div>
                            <div class="body-tintuc">
                                <div class="logo-tintuc">
                                    <img src="<%# "http://img.youtube.com/vi/" + Eval("MaCode") + "/0.jpg" %>" alt="Video"
                                        width="200px" height="150px" />
                                </div>
                                <div class="content-tintuc">
                                    <%# Server.HtmlDecode(Eval("TomTat").ToString()) %>
                                </div>
                            </div>
                            <div class="xemtiep-tintuc">
                                <asp:HyperLink runat="server" ID="linkXemtiep" EnableViewState="false" NavigateUrl='<%# "~/Video/" + GetTieuDe(Eval("TieuDe")) +  "_" + Eval("Id") + ".aspx" %>'>Xem trực tuyến</asp:HyperLink>
                            </div>
                            <div class="thong-tin-tintuc">
                                <div class="in-thong-tin-tintuc" style="margin-left: 325px;">
                                    <img src='<%# ResolveUrl("Images/dotnetgroup/duan_62.png")%>' alt="Chuyen muc" width="32"
                                        height="32" />Trong chuyên mục: <b>
                                            <asp:HyperLink runat="server" ID="linkChuyemuc" EnableViewState="false" NavigateUrl='<%# "~/VideoCatalog/" + GetTieuDe(GetLoaiVideo(Eval("IdLoaiVideo").ToString())) +  "_" + Eval("IdLoaiVideo") + ".aspx" %>'>
                                <%# GetLoaiVideo(Eval("IdLoaiVideo").ToString())%></asp:HyperLink></b>
                                </div>
                            </div>
                        </div>
                    </ItemTemplate>
                </asp:DataList>
                <div class="phan-trang">
                    <cc1:Pager ID="Pager1" runat="server" PreviousClause="<img src='../Images/prevBtn.gif' alt='previous' />"
                        NextClause="<img src='../Images/nextBtn.gif' alt='next' />" LastClause="Cuối"
                        FirstClause="Đầu" PageClause="<html><b>Trang </b></html>" ShowResultClause="Hiển thị từ"
                        ShowingResultClause="Đang hiển thị từ" BackToPageClause="Về trang" NextToPageClause="Đến trang"
                        OfClause=" / " PageSize="5" OnCommand="Pager1_Command" ForeColor="#CC0000" Font-Bold="True"
                        EnableViewState="false" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
